package com.exampled.ddd;

import android.opengl.GLSurfaceView;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;

public class MainActivity extends Activity {
    GLSurfaceView GLView;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        GLView = new MyGLSurfaceView(this);
        setContentView(GLView);
    }


    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        // Inflate the menu; this adds items to the action bar if it is present.
        getMenuInflater().inflate(R.menu.main, menu);
        return true;
    }
    @Override
    protected void onResume(){
        super.onResume();
        GLView.onResume();
    }
    protected void onPause(){
        super.onPause();
        GLView.onPause();
    }
}
